package com.example.controller;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpSession;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author: XMK
 * @Date: 2020/5/20 10:38
 * @Version: 1.0
 */
@Controller
public class HelloController {
    @GetMapping("/")
    public String home(HttpSession session) {

        session.setAttribute("tests", "tttttttttttttttt");

        return "hello";
    }
}
